package com.suse.common.config.response;

import java.util.HashMap;
import java.util.Map;

public class MapBuilder {

    private final Map<String,Object> map = new HashMap<>();

    public MapBuilder put(String key, Object value) {
        map.put(key,value);
        return this;
    }

    public R success() {
        return R.success(map);
    }

    public R success(Code code) {
        return R.success(map, code);
    }

    public R success(String message) {
        return R.success(map,message);
    }

}